/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_pricing_plan.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PRICING_PLAN
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_pricing_plan.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PRICING_PLAN::CTable_PPM_PRICING_PLAN( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PRICING_PLAN" );
  prepareTable();
  prepareQuery();
 
  PRICING_PLAN_ID.setField( "PRICING_PLAN_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( PRICING_PLAN_ID );
  makeKeyItem( PRICING_PLAN_ID ); 
  PRICING_COMBINE_ID.setField( "PRICING_COMBINE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_COMBINE_ID );
  PRICING_PLAN_NAME.setField( "PRICING_PLAN_NAME", DATA_CHAR, 50, 0 );
  makeTableItem( PRICING_PLAN_NAME );
  PRICING_DESC.setField( "PRICING_DESC", DATA_CHAR, 4000, 0 );
  makeTableItem( PRICING_DESC );
  PARAM_DESC.setField( "PARAM_DESC", DATA_CHAR, 4000, 0 );
  makeTableItem( PARAM_DESC );
  OFFER_ID.setField( "OFFER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( OFFER_ID );
  OFFERINSTANCE_STATE.setField( "OFFERINSTANCE_STATE", DATA_CHAR, 3, 0 );
  makeTableItem( OFFERINSTANCE_STATE );
}


CTable_PPM_PRICING_PLAN::CTable_PPM_PRICING_PLAN( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PRICING_PLAN" );
  prepareTable();
  prepareQuery();
 
  PRICING_PLAN_ID.setField( "PRICING_PLAN_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( PRICING_PLAN_ID );
  makeKeyItem( PRICING_PLAN_ID ); 
  PRICING_COMBINE_ID.setField( "PRICING_COMBINE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_COMBINE_ID );
  PRICING_PLAN_NAME.setField( "PRICING_PLAN_NAME", DATA_CHAR, 50, 0 );
  makeTableItem( PRICING_PLAN_NAME );
  PRICING_DESC.setField( "PRICING_DESC", DATA_CHAR, 4000, 0 );
  makeTableItem( PRICING_DESC );
  PARAM_DESC.setField( "PARAM_DESC", DATA_CHAR, 4000, 0 );
  makeTableItem( PARAM_DESC );
  OFFER_ID.setField( "OFFER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( OFFER_ID );
  OFFERINSTANCE_STATE.setField( "OFFERINSTANCE_STATE", DATA_CHAR, 3, 0 );
  makeTableItem( OFFERINSTANCE_STATE );
}

CTable_PPM_PRICING_PLAN::~CTable_PPM_PRICING_PLAN( )
{
    close();
}

